﻿using System;
using System.Collections.Generic;
using System.Text;

namespace FySystem.Net.SimSocket.Protocals
{
    internal class HandlerManager
    {
        /// <summary>
        /// 根据版本号获取处理程序
        /// </summary>
        /// <param name="version"></param>
        /// <returns></returns>
        internal static HandlerBase GetHandlerByVersion(ushort version)
        {
            HandlerBase res = null;
            switch (version)
            {
                case 1:
                    res = new MsgHandlerV1();
                    break;
            }
            return res;
        }
    }
}
